Description |
Performs an HTTP post of the specified data to the specified URL. Typically the data associated with a post operation is form-encoded text, but it could be any type of data that the server expects to receive. |
Arguments |
URL, dataToPost, {contentType} |
|
 |
The first argument is an absolute URL on a web server; if the "http://" part of the URL is omitted, it is assumed. |
 |
The second argument is the data to be posted. If the third argument is "application/x-www-form-urlencoded" or omitted, dataToPost must be form encoded according to section 8.2.1 of the RFC 1866 specification (available at http://www.faqs.org/rfcs/rfc1866.html). |
 |
The third argument is the content type of the data to be posted. If omitted, this argument defaults to "application/x-www-form-urlencoded" . |
|
Returns |
An object that represents the reply from the server. The data property of this object is a string containing the data resulting from the post operation. |
 |
|